﻿
#region Imports

using System.Runtime.Serialization;

#endregion

namespace MammothMicro.SilverSocket.Protocol.System
{
    /// <summary>
    /// Base message for server to client communication
    /// </summary>
    [DataContract(Namespace = "http://mammothmicro.com/silversocket")]
    public abstract class DuplexCbMessage : DuplexMessage, IDuplexCbMessage
    {
        #region IDuplexCbMessage Members

        /// <summary>
        /// Gets or sets ErrorId.
        /// </summary>
        [DataMember]
        public int ErrorId{get;set;}

        /// <summary>
        /// Gets or sets ErrorMessage.
        /// </summary>
        [DataMember]
        public string ErrorMessage{get;set;}

        /// <summary>
        /// Gets or sets Result.
        /// </summary>
        [DataMember]
        public Results Result{get;set;}

        #endregion
    }
}